package com.guoxin.chapter2.synnoextends;

public class Main {
	public synchronized void serviceMethod() {
		try {
			System.out.println("int main 下一步 sleep begin threadName=" + Thread.currentThread().getName() + " time="
					+ System.currentTimeMillis());
			Thread.sleep(5000);
			System.out.println("int main 下一步 sleep end threadName=" + Thread.currentThread().getName() + " time="
					+ System.currentTimeMillis());
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
